package org.example.juc.lock.clh;

import lombok.Data;

@Data
public class Node {
    private Node preNode;

    private volatile boolean locked = false;

    public static final Node EMPTY = new Node(false, null);

    public Node(boolean locked, Node preNode) {
        this.locked = locked;
        this.preNode = preNode;
    }
}
